package com.wr.recruit.service.utils;

public class APIResponse {

    public final Boolean success;
    public final String message;

    public APIResponse(Boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public static APIResponse getFailedResponse(String message){
        return new APIResponse(false, message);
    }

    public static APIResponse getFailedResponse(String format, Object... params){
        return new APIResponse(false, String.format(format, params));
    }
}
